-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci : Add github action workflow for okd 4.14.0 cluster with crc #6389
Conversation
66ec8ca
to
6679f6a
Compare
.github/workflows/e2e-tests.yml
Outdated
okd: [v4.14.0] | ||
crc: [2.32.0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment as to why these versions aren't the latest.
Also create an issue for further investigation and future updates and put the link in the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created this issue #6415. It's also referenced in TODO comment.
.github/workflows/e2e-tests.yml
Outdated
- name: Remove unwanted stuff to free up disk image | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf /opt/hostedtoolcache/CodeQL | ||
|
||
sudo docker image prune --all --force | ||
|
||
sudo swapoff -a | ||
sudo rm -f /mnt/swapfile | ||
sudo adduser $USER libvirt | ||
sudo adduser $USER kvm | ||
sudo usermod -a -G libvirt $USER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried not to include this extra-step?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I try to remove this step in my test repository github action, I see this error:
write /home/runner/.crc/cache/tmp-extract/crc_okd_libvirt_4.14.0-0.okd-scos-2024-01-10-151818_amd64/crc.qcow2: no space left on device
Error: Process completed with exit code 1.
Since this takes ~30 minutes to run, it might be better to set it in a different workflow file and probably run only nightly. |
20b76b0
to
26900b1
Compare
403c44e
to
bd75f23
Compare
- name: Start the crc | ||
run: sudo -su $USER crc start | ||
- name: Install Kubernetes Client | ||
run: ./mvnw ${MAVEN_ARGS} clean install -DskipTests -Djacoco.skip=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imake quickly
should be used here instead.
Especially if we intend to run this for each PR
jobs: | ||
openshift-kubernetes-distribution: | ||
name: CRC ${{ matrix.crc }} / OKD ${{ matrix.okd }} | ||
runs-on: ubuntu-24.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this run faster in macos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked with crc team about this. They had tried it in past but it didn't work due to limited resources available on macOS runner. I'll check it again and see if it's possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried setting up CRC on MacOS runner but wasn't successful in doing it. For some reason workflow gets cancelled automatically during crc start
(see action logs)
af18f08
to
d1d67ed
Compare
It is still failing though |
Signed-off-by: Rohan Kumar <[email protected]>
+ Relax assertion check in ApiVersionsIT to not match exact hostname for server address + Add an exception in PluralizeIT for type ResourceAccessReview, it's singular name is coming as localresourceaccessreview from OpenShift Aggregated Discovery API Signed-off-by: Rohan Kumar <[email protected]>
Signed-off-by: Rohan Kumar <[email protected]>
d1d67ed
to
5e6bc0d
Compare
Signed-off-by: Marc Nuri <[email protected]>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx!
Description
Add workflow for OKD 4.14.0 for running Fabric8 Kubernetes Client E2E tests.
networking.k8s.io/v1
Ingress in ServiceToURLIT, replace deprecated methodsResourceAccessReview
resource, OpenShift Aggregated Discovery API is returningsingularName
for this resource aslocalresourceaccessreview
, that does not match test expectationsType of change
test, version modification, documentation, etc.)
Checklist
Signed-off-by: Rohan Kumar [email protected]